import request from '@/utils/request'

var baseUrl = "http://sun.xinlinju.net"

// 获取供应商送货列表
export function getDeliveryList(data) {
    return request({
        url:'/Delivery/getDeliveryList',
        method: 'post',
        data: data
    })
}

// 获取供应商送货列表明细
export function getDeliverydetail(data) {
    return request({
        url:'/Delivery/getDeliveryDetail',
        method: 'post',
        data: data
    })
}

// 查询商品列表
export function getgoodslist() {
    return request({
        url: '/goods/query/options',
        method: 'post',
    })
}

// 删除送货单
export function deleteDelivery(data) {
    return request({
        url:'/Delivery/deleteDelivery',
        method: 'post',
        data
    })
}

// 送货单送货按钮
export function deliverGoods(data) {
    return request({
        url:'/Delivery/deliverGoods',
        method: 'post',
        data
    })
}

// 新增商品
export function AddDeliveryGoods(data) {
    return request({
        url:'/Delivery/createDeliveryGoods',
        method: 'post',
        data
    })
}

// 编辑商品
export function EditDeliveryGoods(data) {
    return request({
        url:'/Delivery/updateDeliveryGoods',
        method: 'post',
        data
    })
}

// 删除商品
export function deleteDeliveryGoods(data) {
    return request({
        url:'/Delivery/deleteDeliveryGoods',
        method: 'post',
        data
    })
}



// 采购单列表
export function getshoplist(data) {
    return request({
        url:'/Purchase/getPurchaseList',
        method: 'post',
        data
    })
}

// 采购单细节
export function getshopdetail(data) {
    return request({
        url:'/Purchase/getPurchaseDetail',
        method: 'post',
        data
    })
}

// 生成送货单
export function createDelivery(data) {
    return request({
        url:'/Purchase/createDelivery',
        method: 'post',
        data
    })
}



// 结算单列表
export function getSupplierStatementList(data) {
    return request({
        url:'/Statement/getSupplierStatementList',
        method: 'post',
        data
    })
}

// 结算单明细列表
export function getStatementOfSupplier(data) {
    return request({
        url:'/Statement/getStatementOfSupplier',
        method: 'post',
        data
    })
}

// 结算单明细列表详情
export function getStatementDetail(data) {
    return request({
        url:'/Statement/getStatementDetail',
        method: 'post',
        data
    })
}

// 结算单确定按钮
export function confirmbtn(data) {
    return request({
        url:'/Statement/ensureStatement',
        method: 'post',
        data
    })
}
//  审核物业管理费-物业费列表查询
export function getqueryBuildingList(data){
    return request({
        url: 'http://sun.xinlinju.net/propertyUser/queryBuildingList',
        method: 'post',
        data: data
    })
}



// 获取供应商详情(初审中)
export function getFirstAudit(data) {
    return request({
        url:'/Supplier/getFirstAudit',
        method: 'post',
        data
    })
}

// 获取供应商详情(终审)
export function getSupplierDetail(data) {
    return request({
        url:'/Supplier/getSupplierDetail',
        method: 'post',
        data
    })
}


// 供应商补充资料
export function replenishData(data) {
    return request({
        url:'/Supplier/replenishData',
        method: 'post',
        data
    })
}

// 新增供应商
// export function createSupplier(data) {
//     return request({
//         url:'/Supplier/createSupplier',
//         method: 'post',
//         data
//     })
// }
// 审核物业管理费 - 物业管理费详情
export function getviewUserBuildingDetail(data) {
    return request({
        url: 'http://sun.xinlinju.net/propertyUser/viewUserBuildingDetail',
        method: 'post',
        data: data
    })
}
// 审核物业管理费 - 审核
export function getreviewPropertyUserBuilding(data){
    return request({
        url: 'http://sun.xinlinju.net/propertyUser/reviewPropertyUserBuilding',
        method: 'post',
        data: data
    })
}
// 审核物业管理费 - 删除明细
export function getdeleteUserBuilding(data){
    return request({
        url: 'http://sun.xinlinju.net/propertyUser/deleteUserBuilding',
        method: 'post',
        data: data
    })
}
// 审核物业管理费 - 批量审核
export function getbatchReviewPropertyUserBuilding(data) {
    return request({
        url: 'http://sun.xinlinju.net/propertyUser/batchReviewPropertyUserBuilding',
        method: 'post',
        data: data
    })
}
// 管理公司楼房号列表
export function getqueryExchangePropertyUser(data) {
    return request({
        url: 'http://sun.xinlinju.net/exchange/queryExchangePropertyUser',
        method: 'post',
        data: data
    })
}
// 审核物业管理费列表明细 - 生成结算单
export function getcreateUserBuildingDetail(data) {
    return request({
        url: 'http://sun.xinlinju.net/propertyUser/createUserBuildingDetail',
        method: 'post',
        data: data
    })
}
// 楼房号列表审核
export function getreviewPropertyBuildingInfo(data) {
    return request({
        url: 'http://sun.xinlinju.net/propertyUser/reviewBuildingInfo',
        method: 'post',
        data: data
    })
}
// 楼房号批量审核
export function getbatchReviewPropertyBuildingInfo(data) {
    return request({
        url: 'http://sun.xinlinju.net/propertyUser/reviewBatchBuildingInfo',
        method: 'post',
        data: data
    })
}
// 查询楼房号列表
export function queryPropertyUserList(data) {
    return request({
        url: 'http://sun.xinlinju.net/propertyUser/queryProperty',
        method: 'post',
        data: data
    })
}
